﻿// Copyright @ shch8.com All Rights Reserved At 2008-3-12
//开发：商创技术（www.shch8.com）望月狼
/* 
==========事件多参数传值===========
用法：
一：直接添加事件
this.addEventListener(MouseEvent.MOUSE_DOWN,eventMore.add(down_fun,"abc","def"));

二：添加后删除事件
var ttx:Function=eventMore.add(down_fun,"abc","def")
stage.addEventListener(MouseEvent.MOUSE_DOWN,ttx);

function down_fun(event:MouseEvent,var1,var2) {
trace(event);
trace(var1);
trace(var2);
stage.removeEventListener(MouseEvent.MOUSE_DOWN,ttx);//删除事件
}
*/
package com._public._events{
	public class eventMore {
		public function eventMore() {
		}
		public static function add(fun:Function,... more):Function {
			var orif:Boolean=false;
			var setfun:Function=function(e:*,..._more):void{
			_more=more
			if(!orif){
			orif=true
			_more.unshift(e)}
			fun.apply(null,_more)
			};
			return setfun;
		}
	}
}